#-*-coding:utf-8-*-
'''
@ info: gmail manage!
@ date: 2012-09-06
@ author: huangzy
'''
import urllib  
import urllib2 
import sys, httplib, os,check
from django.conf import settings
from crm.models import Members
from crm.models import Agent
from crm.models import gMaillog
from crm.models import gMailList
from crm.models import gMailLetter
from crm.models import Projects
from models import Salesperson,Role
from models import Salesperson_groups
from django.shortcuts import get_object_or_404,render_to_response
from django.http import Http404, HttpResponse, HttpResponseRedirect
from django import forms
from django.core.paginator import Paginator, InvalidPage
import grap_mail_api as grap
from datetime import datetime
import logClass as log
dirpath = '%s/static/log/%s'%(settings.WEB_ROOT,'grap_mali')
logpath = '%s/static/log/%s/%s.log'%(settings.WEB_ROOT,'grap_mali',datetime.now().strftime('%Y%m%d'))
newp = os.path.join(dirpath)
# Make sure upload_path exists.
if not os.path.exists(newp):
    os.makedirs(newp)
log = log.Log(logpath)

def syslogs(request):

    return render_to_response('syslog.html')
    
